package chapter04.item19;

import java.time.Instant;

/**
 * @author zhaoyuqiang
 * @date 2021年10月09日 10:32
 * @description Supper的子类
 */
public class Sub extends Super{
    private final Instant instant;

    public Sub() {
        this.instant = Instant.now();
    }

    @Override
    public void overrideMe() {
        System.out.println(instant);
    }

    public static void main(String[] args) {
        final Sub sub = new Sub();
        sub.overrideMe();
    }
}
